package userchannellogic

import (
	"context"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/user/channel"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type UserUsdtWalletsInfoLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewUserUsdtWalletsInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserUsdtWalletsInfoLogic {
	return &UserUsdtWalletsInfoLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// ------------------user channel usdt ------------------
func (l *UserUsdtWalletsInfoLogic) UserUsdtWalletsInfo(in *rpc.UserUsdtWalletsInfoRequest) (*rpc.UserUsdtWalletsInfoResponse, error) {
	return channel.NewUSDTWalletModel(l.ctx, l.svcCtx.Db).UserUsdtWalletsInfo(in)
}
